export default class Song {
  constructor ({
    album,alias,artists,copyrightId,duration,id,name
  }) {
    this.album = album
    this.alias = alias
    this.artists = artists
    this.copyrightId = copyrightId
    this.duration = duration
    this.id = id
    this.name = name
  }
}

export function createSong(musicData) {
  return new Song({
    album:musicData.album,
    alias:musicData.alias,
    artists:musicData.artists,
    copyrightId:musicData.copyrightId,
    duration:musicData.duration,
    id:musicData.id,
    name:musicData.name,
  }) 
}